{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f4802324",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "用户名称：moxiufang\n",
      "密码：mxf2020\n",
      "您是我们的会员，欢迎使用奥～\n",
      "尊贵的会员，您今天还有 10 次输入的机会\n",
      "today是周几（请输入0-7的数字）：1\n",
      "尊贵的会员，您今天还有 9 次输入的机会\n",
      "today是周几（请输入0-7的数字）：2\n",
      "尊贵的会员，您今天还有 8 次输入的机会\n",
      "today是周几（请输入0-7的数字）：3\n",
      "尊贵的会员，您今天还有 7 次输入的机会\n",
      "today是周几（请输入0-7的数字）：4\n",
      "尊贵的会员，您今天还有 6 次输入的机会\n",
      "today是周几（请输入0-7的数字）：5\n",
      "尊贵的会员，您今天还有 5 次输入的机会\n",
      "today是周几（请输入0-7的数字）：6\n",
      "尊贵的会员，您今天还有 4 次输入的机会\n",
      "today是周几（请输入0-7的数字）：7\n",
      "尊贵的会员，您今天还有 3 次输入的机会\n",
      "today是周几（请输入0-7的数字）：0\n",
      "尊贵的会员，您今天还有 2 次输入的机会\n"
     ]
    }
   ],
   "source": [
    "user_data = \"moxiufang\"\n",
    "user_password = \"mxf2020\"\n",
    "user_name = input(\"用户名称：\")\n",
    "password = input(\"密码：\")\n",
    "\n",
    "if user_name == user_data:\n",
    "    if password == user_password:\n",
    "        print(\"您是我们的会员，欢迎使用奥～\")\n",
    "        count = 11\n",
    "        while True:\n",
    "            count -= 1\n",
    "            if count == 0:\n",
    "                print(\"尊贵的会员，您一天能输入10次奥\")\n",
    "            else:\n",
    "                print(\"尊贵的会员，您今天还有\", count, \"次输入的机会\")\n",
    "                \n",
    "                week_time = int(input(\"today是周几（请输入0-7的数字）：\"))\n",
    "print(\"我的课程表\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "print(week_time)\n",
    "if week_time==1:\n",
    "    print(\"星期一有二节课\");print(\"14：30-16：50 python 语言\");print(\"18：45-20：10 毛概实践\")\n",
    "elif week_time==2:\n",
    "    print(\"星期二有五节课\");print(\"8：00-9：30瑜伽\");print(\"9：45-12：00创业基础（实践）\");print(\"14：30-15：55新媒体时代的新闻评论\");print(\"16:10-17:35大学英语（三）B1班\");print(\"18：45-20：55毛概理论\")\n",
    "elif week_time==3:\n",
    "    print(\"星期三有一节课\");print(\"9：45-12：00融合新闻学\")\n",
    "elif week_time==4:\n",
    "    print(\"星期四有两节课\");print(\"14：30-15：55广告文案写作\")\n",
    "else:\n",
    "    print(\"周五、周六、周日\");print(\"自由学习或者修养身心\")\n",
    "print(\"FINISH\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b43721ac",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
